<template>
  <div>
    <home-header></home-header>
    <home-swiper></home-swiper>
    <home-icons></home-icons>
    <hot-rank></hot-rank>
    <likey></likey>
    <weeky></weeky>
  </div>
</template>

<script>
import HomeHeader from './components/homeHeader'
import HomeSwiper from './components/swiper'
import HomeIcons from './components/icons'
import HotRank from './components/HotRank'
import Likey from './components/Likey'
import Weeky from './components/Weeky'
import Axios from 'axios'
import Http from '@/utils/http'
export default {
  components: {
    HomeHeader,
    HomeSwiper,
    HomeIcons,
    HotRank,
    Likey,
    Weeky,
    Axios
  },
  name: 'Home',
  methods: {
    // 接口地址
    getIndexInfo () {
      Http.Mg('api/index.json', 'get', '', true).then(res => {
        console.log(res)
      }, err => {
        console.log(err)
      })
    }
  },
  mounted () {
    this.getIndexInfo()
  }
}
</script>
<style lang="scss">

</style>
